import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginVue, { rules } from "eslint-plugin-vue";


export default [
  {files: ["**/*.{js,mjs,cjs,ts,vue}"]},
  {languageOptions: { globals: globals.browser }},
  pluginJs.configs.recommended,
  ...tseslint.configs.recommended,
  ...pluginVue.configs["flat/essential"],
  {files: ["**/*.vue"], languageOptions: {parserOptions: {parser: tseslint.parser}}},
  // 配置eslint语法检查忽视的文件
  {ignores:["dist","node_modules"]},
  // 配置eslint语法检查规则
  {rules:{
    'vue/multi-word-component-names':'off', // 关闭组件命名检查
  }}
];